package com.tuju.jetpackfirstdemo.base

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.tuju.jetpackfirstdemo.App

open class BaseActivity : AppCompatActivity(){

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        App.addActivity(this)
    }

    override fun onDestroy() {
        super.onDestroy()
        App.removeActivity(this)
    }
}